PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Appearance Manager Apple Event Constants

Under Appearance Manager 1.1 and later, when the user changes the current appearance (that is, when a theme switch occurs), the Appearance Manager may send any of the following Apple events to all running applications that are high-level event aware and which are registered as clients of the Appearance Manager. Your application registers itself with the Appearance Manager by calling the function RegisterAppearanceClient .

Because typical results of a theme switch might include a change in menu bar height or window structure dimensions, as well as changes to the system fonts, colors, and patterns that are currently in use, applications should listen for and respond to the Appearance Manager Apple events under most circumstances. Note that none of the Appearance Manager Apple events have parameters and that the return value for each is ignored.

enum {
    kAppearanceEventClass       = 'appr',
    kAEAppearanceChanged        = 'thme',
    kAESystemFontChanged        = 'sysf',
    kAESmallSystemFontChanged   = 'ssfn',
    kAEViewsFontChanged         = 'vfnt'
};

Constant descriptions

kAppearanceEventClass
The event class of Appearance Manager Apple events.
kAEAppearanceChanged
The ID of the event indicating the current appearance has changed.
kAESystemFontChanged
The ID of the event indicating the current system font has changed.
kAESmallSystemFontChanged
The ID of the event indicating the current small system font has changed.
kAEViewsFontChanged
The ID of the event indicating the current views font has changed.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)